package rad.framework.conv;

import rad.framework.lang.IOUtil;
import rad.framework.xml.BetwixtUtil;

public class BetwixtImportCommand<E> extends ImportCommand<E> {

	public BetwixtImportCommand(String persistenceUnitJndiName) {
		super(persistenceUnitJndiName);
	}

	@Override
	protected Object transform() {
		String xml = IOUtil.readFile(getFileName());
		return BetwixtUtil.importXml(xml, getEntityClass());
	}
}
